package trader.orig;

public class Limit {
    public static enum Type {
        BUY, SELL
    }
    public double upperLim = Double.MAX_VALUE;
    public double lowerLim = Double.MIN_VALUE;
    public Type upperType;
    public Type lowerType;
    public double buyAmount;
    public int portfolio; 
    //public double sellAmout;
    
    /*
    public Limit(double upperLim, Type upperType, double lowerLim, Type lowerType, double buyAmount, double sellAmount) {
        this.upperLim = upperLim;
        this.upperType = upperType;
        this.lowerLim = lowerLim;
        this.lowerType = lowerType;
        this.buyAmount = buyAmount;
        this.sellAmout = sellAmount;
    }
    */
    
    @Override
    public String toString() {
        return "Limit: upperLim=" + upperLim + ", upperType=" + upperType + ", lowerLim=" + lowerLim + ", lowerType=" + lowerType + (portfolio != 0 ? ", buyAmount=" + buyAmount + ", portfolio=" + portfolio : "");
    }
}
